﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BIS.Portal.Core.Base;
using BIS.Portal.Core.Global;

namespace BIS.Portal.Modules.CMS.Adm
{
    public partial class AdminCmsDisplayTypeContro_Settingsl : ControlSettingBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        private void LoadSetting()
        {
            string pageName = GetControlSetting<string>(
                    ModuleSettingNames.AdminCmsDisplayTypeControl.AdminCmsDisplayType_ContentPage,
                    PortalContext.LanguageAlias
                );
            AdminPageAliasManagement.BindPageList(pageName, ddlPageChoice);
        }

        public override void SaveSettings(Dictionary<string, string> settings)
        {
            SetControlSettingForAllLanguages(ddlPageChoice.ID, ModuleSettingNames.AdminCmsDisplayTypeControl.AdminCmsDisplayType_ContentPage, settings);
        }
    }
}